#include "filebrowsermainloop.h"
#include "filebrowserhandler.h"
#include "common.h"

#include <QDebug>

bool FileBrowserHandler(int socket, int commandLength)
{
	qDebug()<<"Start File Browser  command";
	static FileBrowserMainLoop* mainLoop = new FileBrowserMainLoop;
	static bool first = true;
	if(first)
	{
		mainLoop->start();
		first = false;
	}

	mainLoop->connect(QString(g_ServerIp.c_str()), g_FileBrowserPort);

	return true;
}
